package com.acwer.oa.web;

import java.util.UUID;

import com.acwer.oa.web.utils.JwtUtils;

import io.jsonwebtoken.Claims;

public class Test {

	public static void main(String[] args) {
		String accessToken = JwtUtils.createJWT(UUID.randomUUID().toString(), "pansir","admin", 7200000L);
		System.out.println(accessToken);
		Claims claims=JwtUtils.getTokenClaim(accessToken);
		System.out.println(claims.get("roles"));
		System.out.println(claims.getSubject());
	}

}
